//
// Created by dqchen on 2022/11/2.
//

#ifndef QUEST_0_1_SCANNER_H
#define QUEST_0_1_SCANNER_H
#include "istream"

class Scanner {
public:
    static const int BUFLEN = 100;
    int lineLen = 0;
    int readPos = -1;
    char line[BUFLEN];
    int lineNum = 0;;
    int colNum = 0;
    char last;
    FILE* file;//源文件
    char scan();//扫描并返回一个字符

    Scanner(FILE *file);
    ~Scanner();
};


#endif //QUEST_0_1_SCANNER_H
